package com.sun.hilt;

import javax.inject.Inject;

public class Driver{
    public String name;
    public int age;

   /* public Driver(String name, int age) {
        name = name;
        age = age;
    }*/

//    @Inject
//    public Driver(String n, int a) {
//        name = n;
//        age = a;
//    }

    @Inject
    public Driver() {
        name = "liu yan mei";
        age = 29;
    }

    @Override
    public String toString() {
        return "Driver{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }
}
